package com.madidi.springcloud.service.impl;

import com.madidi.springcloud.entities.Payment;
import com.madidi.springcloud.mapper.PaymentMapper;
import com.madidi.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 马迪迪
 * @description: TODO
 * @data 2025年02月06日1044分
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentMapper paymentMapper;


    @Override
    public Integer create(Payment payment) {
        return paymentMapper.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentMapper.getPaymentById(id);
    }
}
